package com.dwxt.mall.dao;

import com.dwxt.mall.entity.PromotionProduct;
import com.dwxt.mall.entity.PromotionProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PromotionProductMapper {
    long countByExample(PromotionProductExample example);

    int deleteByExample(PromotionProductExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PromotionProduct record);

    int insertSelective(PromotionProduct record);

    List<PromotionProduct> selectByExample(PromotionProductExample example);

    PromotionProduct selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PromotionProduct record, @Param("example") PromotionProductExample example);

    int updateByExample(@Param("record") PromotionProduct record, @Param("example") PromotionProductExample example);

    int updateByPrimaryKeySelective(PromotionProduct record);

    int updateByPrimaryKey(PromotionProduct record);
}